<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>天宝后台商品管理</title>
<style type="text/css">
a:link {
	color: #CC9933;
	text-decoration: none;
}
a:visited {
	color: #CC9933;
	text-decoration: none;
}
</style>
</head>
<style>
.ziti{
    list-style-type: none;
    margin: 0;
    padding: 0;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
	background-color: #555;
    color: white;
}
.zi{
    list-style-type: none;
    margin: 0;
    padding: 0;
    color: #008000;
    padding: 8px 16px;
    text-decoration: none;
    
}

    
.bg {
	background-image: url(../img/bgg.jpg);
	background-position: bottom;
}
.bgg{
	background-image:url(../img/logo_bg.jpg);
}
body{
  background-color: #e8f7cf;
}
</style>
<body>
<?php
session_start();
if($_SESSION['names']!=""){
	
	?>

<?php

include("../conn/conn.php");
session_start();
$sql="select * from tb_video";
$result=mysqli_query($link,$sql);
if(mysqli_num_rows($result)>0){
	?>
<table width="1100" border="0" align="center" style="background-image:url(../img/bbg.jpg); background-position: bottom;">
      <tr>
        <td height="404" valign="top">
        <table width="100%" border="0" class="bgg">
  <tr>
    <td width="20%"><img src="../LOGO/logo.png" width="163" height="61" /></td>
    <td width="80%" class="zi">天宝绿色食品网站后台管理系统</td>
  </tr>
</table>

        <table width="100%" border="0" class="bg">
  <tr>
    <td height="82">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td width="20%"><?php
session_start();

  echo($_SESSION["names"]."欢迎您");
	
echo "<a href='food_del.php'>退出登陆</a>";
	

?>
      <a href="../food.php">返回首页</a></td>
    <td width="80%" align="center"><a href="food_add.php">添加商品</a></td>
  </tr>
</table>

        <table width="100%" border="0">
          <tr>
            <td width="20%" height="50" align="center" class="ziti"><a href="pl_shoye.php">首页</a></td>
            <td width="80%" rowspan="7" valign="top"><table width="100%" align="center">
              <tr class="ziti">
    <td>序号</td>
    <td>商品序号</td>
    <td>商品种类</td>
    <td>详细信息</td>
    <td>删除</td>
    </tr>
    <?php
    $num=1;
	while ($row_pl=mysqli_fetch_assoc ($result)) {
		?>
		<tr>
		<td><?=$num++?></td>
    <td><?=$row_pl['name']?></td>
    <td><?=$row_pl['style']?></td>
    <td><?=$row_pl['remark']?></td>
    <td><a href="food_del.php?id=<?=$row_pl[id]?>">删除</a></td>
    </tr>
    <?php
	}
	}
?>

</table></td>
          </tr>
          <tr>
            <td height="50" align="center" class="ziti"><a href="pl_gl.php">评论管理</a></td>
          </tr>
          <tr>
            <td height="50" align="center" class="ziti"><a href="food_gl.php">商品管理</a></td>
          </tr>
          
          <tr>
            <td height="50" align="center" class="ziti"><a href="user_gl.php">用户管理</a></td>
          </tr>
          <tr>
            <td height="50" align="center" class="ziti"><a href="gly_gl.php">管理员管理</a></td>
          </tr>
          
        </table></td>
  </tr>
</table>
        
 <?php
	}
	else{
		echo "<script>alert('请登陆再管理');location='gldenglu.php';</script>";
		
		}
?>  

</body>
</html>